package com.maimao.kill.service;

import com.xxl.job.core.context.XxlJobHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author wangmaolin1
 * @date 2021/9/23 下午2:43
 */
@Service
@Slf4j
public class TestService {
    public void test(int num) {
        for (int i = 0; i < 10; i++) {
            XxlJobHelper.log("print {}", i);
        }
        if (num == 1) {
            throw new RuntimeException();
        }
    }
}
